package String;
/*
* StringBuilder修改字符串内容性能高，开销小
*StringBuilder修改字符串内容性能小，开销大
*
*
* */
public class StringBuilderDemo2 {
    public static void main(String[] args) {
      /*  String s = "a";
        for(int i=0 ;i<1000000;i++)
            s=s+"a";
        System.out.println(s);
        */
       StringBuilder builder = new StringBuilder("a");
       for(int i=0 ;i<100000000;i++){
           builder.append("a");
       }
       System.out.println("执行完毕");
    }
}
